package com.qf.kady.ssm.mapper;

import com.qf.kady.ssm.pojo.Book;
import com.qf.kady.ssm.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * \* Created with IntelliJ IDEA.
 * \* User: kady
 * \* Date: 2021/4/21
 * \* Time: 11:50
 * \* 千峰JAVA2101班
 * \* Description: 书Dao映射
 * \
 */

@Repository
public interface BookMapper {
    List<Book> getListByCondition(@Param("keyword") String keyword,@Param("readerId") Long readerId,@Param("readerIdForLendFilter") Long readerIdForLendFilter);
    Book selectBookWithClassInfoById(Long bookId);
    boolean addBook(Book book);
    boolean updateBookById(Book book);
    boolean deleteBookById(Long bookId);
}
